package com.efounder.router.service;

import android.content.Context;

import com.alibaba.android.arouter.facade.Postcard;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.facade.service.DegradeService;
import com.efounder.router.constant.RouterConstant;
import com.efounder.util.AppContext;
import com.efounder.util.ToastUtil;

/**
 * 全局自动降级服务，页面找不到的时候会调用 onlost方法
 */
@Route(path = RouterConstant.GROUP_COMMON_SERVICE + "/jfDegradeService")
public class JfDegradeServiceImpl implements DegradeService {
    @Override
    public void onLost(Context context, Postcard postcard) {
        ToastUtil.showToast(AppContext.getInstance(), "页面未找到！！");
    }

    @Override
    public void init(Context context) {

    }
}